package com.guoyw.springboot.shardingsphere.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 地址
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_address")
public class Address {
    
    private static final long serialVersionUID = 661434701950670670L;
    @TableId(value = "address_id", type = IdType.AUTO)
    private Long addressId;
    
    @TableField("addressName")
    private String addressName;
    
    
    
    public void setAddressName(final String addressName) {
        this.addressName = addressName;
    }
}
